<%@ Page Language="VB" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="false" 
CodeFile="Add_CommRate.aspx.vb" Inherits="Admin_Add_CommRate" title="CIMS" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <table border="0" cellpadding="0" cellspacing="0" width="580">
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="font-size: 10pt; width: 130px; font-family: Verdana; height: 25px;" align="left">
                        &nbsp;Broker:</td>
                    <td style="width: 450px; height: 25px;" align="left">
                        <asp:DropDownList ID="broker_cmb" runat="server" Width="288px" TabIndex="2" AutoPostBack="True">
                        </asp:DropDownList></td>                    
                </tr>
            </table>
        </td></tr>        
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="font-size: 10pt; width: 130px; font-family: Verdana; height: 25px;" align="left">
                        &nbsp;Provider:</td>
                    <td style="width: 450px; height: 25px;" align="left">
                        <asp:DropDownList ID="provider_cmb" runat="server" Width="288px" TabIndex="2" AutoPostBack="True">
                        </asp:DropDownList></td>                    
                </tr>
            </table>
        </td></tr>        
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="font-size: 10pt; width: 130px; font-family: Verdana; height: 25px;" align="left">
                        &nbsp;Product:</td>
                    <td style="width: 450px; height: 25px;" align="left">
                        <asp:DropDownList ID="product_cmb" runat="server" Width="288px" TabIndex="2" AutoPostBack="True">
                        </asp:DropDownList></td>                    
                </tr>
            </table>
        </td></tr>        
    </table>
    
    <br />

    <table cellpadding="0" cellspacing="0" width="580" style="font-family:Verdana; font-size:10pt">
        <tr>
        <td align="left" style="height: 16px"> Total Rates:
            <asp:Label ID="Results_lbl" runat="server"></asp:Label></td>
        <td align="right" style="height: 16px;"> </td>
        </tr>
    </table>
        
    <table cellpadding="0" cellspacing="0">
        <tr><td style="width: 580px;">
            <asp:DataGrid ID="DataGrid" runat="server" AutoGenerateColumns="False" BackColor="White"
                BorderColor="White" BorderStyle="Solid" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Width="580px" Font-Size="Small" TabIndex="7" AllowSorting="True" AllowPaging="True">
                <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                <PagerStyle BackColor="White" ForeColor="#330099" HorizontalAlign="Left" Mode="NumericPages" PageButtonCount="9" Position="Top" />
                <AlternatingItemStyle BackColor="#D7DADF" />
                <ItemStyle BackColor="#F2F3F5" ForeColor="Black" />
                <HeaderStyle BackColor="#105BA4" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundColumn DataField="lookup_desc" HeaderText="Advisor Level" ReadOnly="True">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="Commission Rate">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" 
                            Text='<%# DataBinder.Eval(Container.DataItem, "user_com_rate") %>'>
                            </asp:Label>
                        </ItemTemplate>
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" MaxLength="6" Width="46px"
                            Text='<%# DataBinder.Eval(Container.DataItem, "user_com_rate") %>'>
                            </asp:TextBox>
                            <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
                                FilterType="Custom, Numbers" TargetControlID="TextBox1" ValidChars=".">
                            </ajaxToolkit:FilteredTextBoxExtender>
                        </EditItemTemplate>
                    </asp:TemplateColumn>
                    <asp:EditCommandColumn CancelText="Back" EditText="Edit" UpdateText="Update">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:EditCommandColumn>
                    <asp:BoundColumn DataField="lookup_seq" Visible="False" ReadOnly="True">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="advisor_level_cd" Visible="False" ReadOnly="True"></asp:BoundColumn>
                </Columns>
            </asp:DataGrid></td></tr>
    </table>        
    <asp:ScriptManager runat="server" ID="ScriptManager1"></asp:ScriptManager>
    <asp:ValidationSummary ID="ValidationSummary1"
                runat="server" ShowMessageBox="True" ShowSummary="False" />
</asp:Content>